package com.fowo.api.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.controller.purchase.dto.PurchaseOrderResult;
import com.fowo.api.model.inventory.details.InventoryDetailsGetBinInventoryParam;
import com.fowo.api.model.inventory.details.InventoryDetailsGetBinInventoryResult;
import com.fowo.api.model.inventory.list.InventoryListGetInventoryParam;
import com.fowo.api.model.inventory.list.InventoryListGetInventoryResult;
import com.fowo.api.model.inventory.list.InventoryListGetProductParam;
import com.fowo.api.model.inventory.list.InventoryListGetProductResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface InventoryListDMapper {
       /** 生成盘点明细 */
    List<InventoryListGetInventoryResult> getInventory(InventoryListGetInventoryParam param);

    Page<InventoryListGetProductResult> selectProduct(Page page, InventoryListGetProductParam param);
    /** 仓位盘点 */
    List<InventoryListGetInventoryResult> getInventoryByBins(List<Long> bins,Boolean zeroParticipation);

    List<InventoryDetailsGetBinInventoryResult> getBinInventory(InventoryDetailsGetBinInventoryParam param);
    List<PurchaseOrderResult> getPurchaseOrder(InventoryDetailsGetBinInventoryParam param);
}
